import { reqSongList } from "../../api";

const state = {
  songList:{}
}

const mutations = {
  GETSONGLIST (state, songList) {
    state.songList = songList
  }
}

const actions = {
  async getSongList ({ commit }) {
    let result = await reqSongList()
    if (result.code == 200) {
      commit('GETSONGLIST', result.rows)
    }
  }
}
const getters = {}

export default {
  state,
  mutations,
  actions,
  getters
}